const fs = require("fs");
const path = require("path");

function a(b){
    let files = fs.readdirSync(b);
    files.forEach((v) => {
        let stat = fs.statSync(path.join(b,v))
        if(stat.isFile()){
            fs.unlinkSync(path.join(b,v))
        }else{
            a(path.join(b,v))
        }
    })
}

a(__dirname + "/ceshi1");